# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer:
pkgname=goobook
pkgver=3.5.1
pkgrel=0
pkgdesc="Access Google contacts from the command line"
url="https://gitlab.com/goobook/goobook"
arch="noarch !ppc64le"  # limited by py3-grpcio
license="GPL-3.0-or-later"
depends="
	py3-google-api-python-client
	py3-google-auth-httplib2
	py3-httplib2
	py3-oauth2client
	py3-simplejson
	py3-xdg
	python3
	"
makedepends="py3-docutils py3-setuptools"
options="!check" # no test suite on gitlab
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/g/goobook/goobook-$pkgver.tar.gz"

build() {
	python3 setup.py build

	rst2man-3 --strict goobook.1.rst goobook.1
}

package() {
	python3 setup.py install --root="$pkgdir"

	install -Dm644 goobook.1 -t "$pkgdir"/usr/share/man/man1
}

sha512sums="
58d056d7d76843bc874e55424912bb00068541e674b780511b7753da31f2df9514baa188017dd0a7479b5527cd50c47e35f37afc493bdc973e0eb1624998a611  goobook-3.5.1.tar.gz
"
